﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.master" CodeBehind="ReceiptNEw.aspx.cs"
    Inherits="AccessWare.ReceiptNEw" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">

  <script type="text/javascript">
      $(document).ready(function () {
          var dp = $('#<%=DateTextbox.ClientID%>');
          dp.datepicker({
              changeMonth: true,
              changeYear: true,
              format: "dd.mm.yyyy",
              language: "tr"
          }).on('changeDate', function (ev) {
              $(this).blur();
              $(this).datepicker('hide');
          });
      });
</script>


</asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
 

    <div>
        <h2>
            Receipt Enteries</h2>
        <br />
        <div style="display: inline-block;">
            <table>
                <tr>
                    <td>
                        Wagon No.
                    </td>
                    <td>
                        <asp:TextBox ID="txt_wagon" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Date
                    </td>
                    <td>
                        <asp:TextBox ID="DateTextbox" runat="server"></asp:TextBox>
                        <%-- <input type="text" id="datepicker"/>--%>
 
                    </td>
                </tr>
                <tr>
                    <td>
                        Truck Sheet No./LR No.
                    </td>
                    <td>
                        <asp:TextBox ID="txt_LRNo" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Truck No.
                    </td>
                    <td>
                        <asp:TextBox ID="txt_truck" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        No. of Bags
                    </td>
                    <td>
                        <asp:TextBox ID="txt_noofbags" runat="server"></asp:TextBox>

                          <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_noofbags"
ErrorMessage="Please Enter Only Numbers" ValidationExpression="^\d+$" ValidationGroup="check"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        GR. Wt
                    </td>
                    <td>
                        <asp:TextBox ID="txt_gross" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Tare Wt
                    </td>
                    <td>
                        <asp:TextBox ID="txt_tare" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        NT. WT(WITH GUNYIES)
                    </td>
                    <td>
                        <asp:TextBox ID="txt_nt" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        GRADE
                    </td>
                    <td>
                        <asp:TextBox ID="txt_grade" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div style="display: inline-block;">
            <table>
                <tr>
                    <td>
                        STACK NO.
                    </td>
                    <td>
                        <asp:TextBox ID="txt_stackno" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        WEIGH SLIP NO
                    </td>
                    <td>
                        <asp:TextBox ID="txt_weslipno" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        RR No.
                    </td>
                    <td>
                        <asp:TextBox ID="txt_rr" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        ORIGINATING HUB.
                    </td>
                    <td>
                        <asp:TextBox ID="txt_originatin" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        CROP YEAR
                    </td>
                    <td>
                        <asp:TextBox ID="txt_crop" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        NAME OF THE TRANSPORTER
                    </td>
                    <td>
                        <asp:TextBox ID="txt_nameoftrans" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Remarks
                    </td>
                    <td>
                        <asp:TextBox ID="txt_Remarks" TextMode="MultiLine" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>

    </div>
<asp:Label ID="LBLSAVE" runat="server"   Visible="false" />
    <asp:Button ID="btn_receipt" runat="server" Text="Save" class="btn btn-large btn-primary" OnClick="btn_receipt_Click" />
</asp:Content>
